load("@io_bazel_rules_go//go:def.bzl", "go_library")

go_library(
    name = "prometheus",
    srcs = [
        "build_info.go",
        "build_info_pre_1.12.go",
        "collector.go",
        "counter.go",
        "desc.go",
        "doc.go",
        "expvar_collector.go",
        "fnv.go",
        "gauge.go",
        "go_collector.go",
        "histogram.go",
        "labels.go",
        "metric.go",
        "observer.go",
        "process_collector.go",
        "process_collector_other.go",
        "process_collector_windows.go",
        "registry.go",
        "summary.go",
        "timer.go",
        "untyped.go",
        "value.go",
        "vec.go",
        "wrap.go",
    ],
    importmap = "github.com/cockroachdb/cockroach/vendor/github.com/prometheus/client_golang/prometheus",
    importpath = "github.com/prometheus/client_golang/prometheus",
    visibility = ["//visibility:public"],
    deps = [
        "//vendor/github.com/beorn7/perks/quantile",
        "//vendor/github.com/golang/protobuf/proto",
        "//vendor/github.com/prometheus/client_golang/prometheus/internal",
        "//vendor/github.com/prometheus/client_model/go",
        "//vendor/github.com/prometheus/common/expfmt",
        "//vendor/github.com/prometheus/common/model",
    ] + select({
        "@io_bazel_rules_go//go/platform:aix": [
            "//vendor/github.com/prometheus/procfs",
        ],
        "@io_bazel_rules_go//go/platform:android": [
            "//vendor/github.com/prometheus/procfs",
        ],
        "@io_bazel_rules_go//go/platform:darwin": [
            "//vendor/github.com/prometheus/procfs",
        ],
        "@io_bazel_rules_go//go/platform:dragonfly": [
            "//vendor/github.com/prometheus/procfs",
        ],
        "@io_bazel_rules_go//go/platform:freebsd": [
            "//vendor/github.com/prometheus/procfs",
        ],
        "@io_bazel_rules_go//go/platform:illumos": [
            "//vendor/github.com/prometheus/procfs",
        ],
        "@io_bazel_rules_go//go/platform:ios": [
            "//vendor/github.com/prometheus/procfs",
        ],
        "@io_bazel_rules_go//go/platform:js": [
            "//vendor/github.com/prometheus/procfs",
        ],
        "@io_bazel_rules_go//go/platform:linux": [
            "//vendor/github.com/prometheus/procfs",
        ],
        "@io_bazel_rules_go//go/platform:nacl": [
            "//vendor/github.com/prometheus/procfs",
        ],
        "@io_bazel_rules_go//go/platform:netbsd": [
            "//vendor/github.com/prometheus/procfs",
        ],
        "@io_bazel_rules_go//go/platform:openbsd": [
            "//vendor/github.com/prometheus/procfs",
        ],
        "@io_bazel_rules_go//go/platform:plan9": [
            "//vendor/github.com/prometheus/procfs",
        ],
        "@io_bazel_rules_go//go/platform:solaris": [
            "//vendor/github.com/prometheus/procfs",
        ],
        "@io_bazel_rules_go//go/platform:windows": [
            "//vendor/golang.org/x/sys/windows",
        ],
        "//conditions:default": [],
    }),
)
